package com.alibaba.travel.scenic.service.impl;

import com.alibaba.travel.scenic.dao.ScenicCategoryRelationDao;
import com.alibaba.travel.scenic.entity.ScenicCategoryRelationEntity;
import com.alibaba.travel.scenic.service.ScenicCategoryRelationService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.alibaba.travel.common.utils.PageUtils;
import com.alibaba.travel.common.utils.Query;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("scenicCategoryRelationService")
public class ScenicCategoryRelationServiceImpl extends ServiceImpl<ScenicCategoryRelationDao, ScenicCategoryRelationEntity> implements ScenicCategoryRelationService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ScenicCategoryRelationEntity> page = this.page(
                new Query<ScenicCategoryRelationEntity>().getPage(params),
                new QueryWrapper<ScenicCategoryRelationEntity>()
        );

        return new PageUtils(page);
    }

}